import request from './request'
console.log('-------------------')
console.log(process.env.CALC_API)
console.log(process.env.HEHE)
const BASE_URI = `${process.env.CALC_API}/property-app/api/v1`;
const access = data => request({
    url: `${BASE_URI}/access`,
    method: 'post',
    data,
});
const log = data => request({
    url: `${BASE_URI}/access/log`,
    method: 'post',
    data,
});
const loadData = data => request({
    url: `${BASE_URI}/access/log/loadData`,
    method: 'post',
    data,
});
const download = data => request({
    url: `${BASE_URI}/access/download`,
    method: 'post',
    data,
});
export default {
    access,
    log,
    loadData,
    download
};